package com.itcanteen.medical.patient.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 患者档案
 * @author 1804A-TeamOne
 * @date 2020-12-17 16:10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "patient_document")
public class PatientDocument extends BaseEntity {

    /**
     * 病人编号
     */
    @Column(name = "patient_id", nullable = false)
    private Integer patientId;

    /**
     * 身高
     */
    @Column(name = "height", nullable = false)
    private Double height;

    /**
     * 体重
     */
    @Column(name = "weight", nullable = false)
    private Double weight;

    /**
     * 腰围
     */
    @Column(name = "waist", nullable = false)
    private Double waist;

    /**
     * 饮酒习惯
     */
    @Column(name = "drink_habit", nullable = false)
    private Integer drinkHabit;

    /**
     * 肝功能
     */
    @Column(name = "liver_function", nullable = false)
    private Integer liverFunction;

    /**
     * 肾功能
     */
    @Column(name = "renal_function", nullable = false)
    private Integer renalFunction;

    /**
     * 婚姻状况
     */
    @Column(name = "marital_status", nullable = false)
    private Integer maritalStatus;

    /**
     * 生育状况
     */
    @Column(name = "fertility_status", nullable = false)
    private Integer fertilityStatus;

    /**
     疾病史
     */
    @Column(name = "desease_history", nullable = false)
    private String deseaseHistory;

    /**
     @param patientId 患者id 构造方法
     */
    public PatientDocument (Integer patientId) {
        this.patientId = patientId;
    }
}

